﻿<Window x:Class="SvnToTfs.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Subversion To Team Fondation Server Migration Tool" Height="550" Width="750" ResizeMode="CanResizeWithGrip" Loaded="Window_Loaded">
    <DockPanel>
        <Grid DockPanel.Dock="Top">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            
            <Label   Grid.Column="0" Grid.Row="0">Subversion repository URL</Label>
            <TextBox Grid.Column="1" Grid.Row="0" x:Name="_txtSubversionUrl" Text=""></TextBox>

            <Label   Grid.Column="0" Grid.Row="1">Subversion Username</Label>
            <TextBox Grid.Column="1" Grid.Row="1" x:Name="_txtUsername" Text=""></TextBox>

            <Label       Grid.Column="0" Grid.Row="2">Subversion Password</Label>
            <PasswordBox Grid.Column="1" Grid.Row="2" x:Name="_txtPassword" Password=""></PasswordBox>

            <Label   Grid.Column="0" Grid.Row="3">Subversion Start Revision</Label>
            <TextBox Grid.Column="1" Grid.Row="3" x:Name="_txtStartRevision" Text="1"></TextBox>

            <Label   Grid.Column="0" Grid.Row="4">Subversion End revision</Label>
            <TextBox Grid.Column="1" Grid.Row="4" x:Name="_txtEndRevision">head</TextBox>

            <Label    Grid.Column="0" Grid.Row="5" x:Name="_lblNewImport">New Import?</Label>
            <CheckBox Grid.Column="1" Grid.Row="5" x:Name="_cbNewImport" IsChecked="True">This is a new import (don't start from previous import)</CheckBox>

            <Label    Grid.Column="0" Grid.Row="6">TFS Collection</Label>
            <ComboBox Grid.Column="1" Grid.Row="6" x:Name="_cboTfsCollection" IsEditable="True" SelectionChanged="_cboTfsCollection_SelectionChanged" />

            <Label    Grid.Column="0" Grid.Row="7">TFS Project</Label>
            <ComboBox Grid.Column="1" Grid.Row="7" x:Name="_cboTfsProject" IsEditable="True" SelectionChanged="_cboTfsProject_SelectionChanged" />

            <Label    Grid.Column="0" Grid.Row="8">Branch</Label>
            <ComboBox Grid.Column="1" Grid.Row="8" x:Name="_cboProjectBranch" IsEditable="True" />

            <Label   Grid.Column="0" Grid.Row="9">File path</Label>
            <TextBox Grid.Column="1" Grid.Row="9" x:Name="_txtFilePath" Text=""></TextBox>
        </Grid>

        <Button DockPanel.Dock="Top" x:Name="_btnStart" Click="_btnStart_Click">Start</Button>
        <ProgressBar DockPanel.Dock="Top" x:Name="_pgbMain" Height="23"/>
        <ProgressBar DockPanel.Dock="Top" x:Name="_pgbExportImport" Height="23" />
        <StatusBar DockPanel.Dock="Bottom" x:Name="_stbMain" Height="25">
            <StatusBarItem>
                <TextBlock>Progression :</TextBlock>
            </StatusBarItem>
            <StatusBarItem>
                <TextBlock x:Name="_txtStatusProgressionCurrent" />
            </StatusBarItem>
            <StatusBarItem>
                <TextBlock>/</TextBlock>
            </StatusBarItem>
            <StatusBarItem>
                <TextBlock x:Name="_txtStatusProgressionMax" />
            </StatusBarItem>
            <StatusBarItem>
                <TextBlock>Revision :</TextBlock>
            </StatusBarItem>
            <StatusBarItem>
                <TextBlock x:Name="_txtStatusRevision" />
            </StatusBarItem>
            <StatusBarItem>
                <TextBlock>Log message :</TextBlock>
            </StatusBarItem>
            <StatusBarItem VerticalContentAlignment="Top" Margin="0,3,0,0">
                <TextBlock x:Name="_txtStatusLogMessage" />
            </StatusBarItem>
        </StatusBar>
        <TextBox x:Name="_txtLog" VerticalScrollBarVisibility="Visible"></TextBox>
    </DockPanel>
</Window>
